import * as types from './api-types'
import { AsyncResponse } from './api-types'
import {RequestOptionsInit} from 'umi-request'
// @ts-ignore
import { request } from 'umi'
export const OpAgreement = {
  async agreementDetail <T = any>(agreementId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/agreement/agreementDetail/${agreementId}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async agreementList <T = any>(agreementModRequest?: types.AgreementPageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/agreement/agreementList`, { method: 'post', data: agreementModRequest,  ...(requestOptions ?? {}) })
  },
  async agreementMod <T = any>(agreementModRequest?: types.AgreementModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/agreement/agreementMod`, { method: 'post', data: agreementModRequest,  ...(requestOptions ?? {}) })
  },
}
export const OpCaseManage = {
  async audit <T = any>(auditCommonDto?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/caseManager/audit`, { method: 'post', data: auditCommonDto,  ...(requestOptions ?? {}) })
  },
  async casesDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/caseManager/casesDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async casesRecommend <T = any>(id?: number, recommend?: boolean, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/caseManager/casesRecommend/${id}/${recommend}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async countInfo <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/caseManager/countInfo`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async delete <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/caseManager/delete/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async pageQuery <T = any>(pageQuery?: types.CasePageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/caseManager/pageQuery`, { method: 'post', data: pageQuery,  ...(requestOptions ?? {}) })
  },
}
export const CashManager = {
  async audit <T = any>(auditCommonDto?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/cashManager/audit`, { method: 'post', data: auditCommonDto,  ...(requestOptions ?? {}) })
  },
  async cashCountInfo <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/cashManager/cashCountInfo`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async list <T = any>(query?: types.CashManageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/cashManager/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const OpCircleManager = {
  async add <T = any>(circleMod?: types.CircleMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/add`, { method: 'post', data: circleMod,  ...(requestOptions ?? {}) })
  },
  async circleCount <T = any>(circleType?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/circleCount/${circleType}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async courseFind <T = any>(title?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/courseFind`, { method: 'post', params: { title },  ...(requestOptions ?? {}) })
  },
  async del <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/del/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async detail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/detail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async dynamicCountInfo <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/dynamicCountInfo`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async dynamicDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/dynamicDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async dynamicMarkMod <T = any>(markMod?: types.DynamicMarkMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/dynamicMarkMod`, { method: 'post', data: markMod,  ...(requestOptions ?? {}) })
  },
  async dynamicQuery <T = any>(query?: types.AdminCircleDynamicQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/dynamicQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async dynamicStatusMod <T = any>(enabling?: number, id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/dynamicStatusMod/${id}/${enabling}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async mod <T = any>(circleMod?: types.CircleMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/mod`, { method: 'post', data: circleMod,  ...(requestOptions ?? {}) })
  },
  async operate <T = any>(id?: number, state?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/operate/${id}/${state}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async pageQuery <T = any>(query?: types.CircleListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/circleManager/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const OpCommon = {
  async area <T = any>(areaRequest?: types.AreaRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/common/area`, { method: 'post', data: areaRequest,  ...(requestOptions ?? {}) })
  },
  async cache <T = any>(key?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/common/dictionary/${key}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async searchDictionary <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/common/search/dictionary`, { method: 'get',  ...(requestOptions ?? {}) })
  },
}
export const CourseManager = {
  async courseAdd <T = any>(courseMod?: types.CourseMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/add`, { method: 'post', data: courseMod,  ...(requestOptions ?? {}) })
  },
  async countInfo <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/countInfo`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async courseOperate <T = any>(courseId?: number, state?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/courseOperate/${courseId}/${state}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async detail <T = any>(courseId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/detail/${courseId}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async folderDetailInfo <T = any>(folderName?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/folder/detailInfo`, { method: 'post', params: { folderName },  ...(requestOptions ?? {}) })
  },
  async folderSynchronize <T = any>(folderName?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/folder/synchronize`, { method: 'post', params: { folderName },  ...(requestOptions ?? {}) })
  },
  async list <T = any>(query?: types.CourseListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async courseMod <T = any>(courseMod?: types.CourseMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/courseManager/mod`, { method: 'post', data: courseMod,  ...(requestOptions ?? {}) })
  },
}
export const OpUser = {
  async currentUser <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/user/currentUser`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async login <T = any>(req?: types.WebLoginReq, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/admin/user/login`, { method: 'post', data: {
      stuNo: req?.account,pwd:req?.password
      },  ...(requestOptions ?? {}) })
  },
  async refresh <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/refresh`, { method: 'post',  ...(requestOptions ?? {}) })
  },
}
export const MobileDemandManager = {
  async audit <T = any>(auditCommonDto?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/demand/audit`, { method: 'post', data: auditCommonDto,  ...(requestOptions ?? {}) })
  },
  async countInfo <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/demand/countInfo`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async audit1 <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/demand/del/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async demandAuditLog <T = any>(demandId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/demand/demandAuditLog/${demandId}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async detail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/demand/detail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async list <T = any>(query?: types.AdminDemandQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/demand/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const DesignerManager = {
  async approvedList <T = any>(query?: types.DesignerApprovedQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/approvedList`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async approvedListCountInfo <T = any>(type?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/approvedListCountInfo/${type}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async customizeCount <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/customizeCount`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async customizeDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/customizeDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async customizeList <T = any>(query?: types.DesignerCustomizeQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/customizeList`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async designerAudit <T = any>(auditCommonDto?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/designerAudit`, { method: 'post', data: auditCommonDto,  ...(requestOptions ?? {}) })
  },
  async detail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/detail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async managerList <T = any>(query?: types.DesignerManagerListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async serverList <T = any>(query?: types.CustomizeListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/server/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async serverList1 <T = any>(designerId?: number, recommend?: boolean, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/server/recommend/${designerId}/${recommend}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async serverNameSet <T = any>(serverNameSetRequest?: types.ServerNameSetRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/designerManager/serverNameSet`, { method: 'post', data: serverNameSetRequest,  ...(requestOptions ?? {}) })
  },
}
export const DictionaryManager = {
  async add <T = any>(query?: types.DictionaryMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/dictionaryManager/add`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async cache <T = any>(key?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/dictionaryManager/cache/${key}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async detail <T = any>(query?: types.DictionaryPageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/dictionaryManager/detail`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async mod <T = any>(query?: types.DictionaryMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/dictionaryManager/mod`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async modSortNum <T = any>(query?: types.DictionaryModSortNum, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/dictionaryManager/modSortNum`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async page <T = any>(query?: types.DictionaryPageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/dictionaryManager/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const OpFile = {
  async formalUpload <T = any>(fileName?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/formalUpload`, { method: 'post', params: { fileName },  ...(requestOptions ?? {}) })
  },
  async publicUpload <T = any>(fileName?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/publicUpload`, { method: 'post', params: { fileName },  ...(requestOptions ?? {}) })
  },
}
export const OpHelpFeedback = {
  async messageList <T = any>(query?: types.PageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/helpFeedback/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async read <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/helpFeedback/read/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
}
export const OpImMessageManager = {
  async messageList <T = any>(query?: types.MessageRecordManageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/imMessageManager/im/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async messageDisable <T = any>(operate?: types.MessageRecordOperate, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/imMessageManager/messageDisable`, { method: 'post', data: operate,  ...(requestOptions ?? {}) })
  },
}
export const Label = {
  async labelAdd <T = any>(labelAdd?: types.LabelAdd, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/labelManager/add`, { method: 'post', data: labelAdd,  ...(requestOptions ?? {}) })
  },
  async labelCheck <T = any>(labelCheckRequest?: types.LabelCheckRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/labelManager/labelCheck`, { method: 'post', data: labelCheckRequest,  ...(requestOptions ?? {}) })
  },
  async labelMod <T = any>(labelMod?: types.LabelMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/labelManager/mod`, { method: 'post', data: labelMod,  ...(requestOptions ?? {}) })
  },
  async page <T = any>(query?: types.LabelListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/labelManager/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const Marketing = {
  async contentAdd <T = any>(contentModRequest?: types.ContentModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/contentAdd`, { method: 'post', data: contentModRequest,  ...(requestOptions ?? {}) })
  },
  async contentDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/contentDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async contentEdit <T = any>(contentModRequest?: types.ContentModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/contentEdit`, { method: 'post', data: contentModRequest,  ...(requestOptions ?? {}) })
  },
  async contentList <T = any>(pageQuery?: types.ContentPageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/contentList`, { method: 'post', data: pageQuery,  ...(requestOptions ?? {}) })
  },
  async positionAdd <T = any>(positionModRequest?: types.PositionModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/positionAdd`, { method: 'post', data: positionModRequest,  ...(requestOptions ?? {}) })
  },
  async positionDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/positionDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async positionEdit <T = any>(positionModRequest?: types.PositionModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/positionEdit`, { method: 'post', data: positionModRequest,  ...(requestOptions ?? {}) })
  },
  async positionList <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/positionList`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async positionPage <T = any>(pageQuery?: types.PositionPageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/positionPage`, { method: 'post', data: pageQuery,  ...(requestOptions ?? {}) })
  },
  async strategyAdd <T = any>(strategyModRequest?: types.StrategyModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/strategyAdd`, { method: 'post', data: strategyModRequest,  ...(requestOptions ?? {}) })
  },
  async strategyEdit <T = any>(contentModRequest?: types.StrategyModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/strategyEdit`, { method: 'post', data: contentModRequest,  ...(requestOptions ?? {}) })
  },
  async strategyList <T = any>(positionId?: number, state?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/strategyList/${state}/${positionId}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async strategyOperate <T = any>(state?: string, strategyId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/strategyOperate/${state}/${strategyId}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async taskAdd <T = any>(positionModRequest?: types.PushTaskAdd, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/taskAdd`, { method: 'post', data: positionModRequest,  ...(requestOptions ?? {}) })
  },
  async taskCancel <T = any>(taskId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/taskCancel/${taskId}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async taskQuery <T = any>(query?: types.PushTaskQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/taskQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async welfareAdd <T = any>(adminWelfareAdd?: types.AdminWelfareAdd, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/welfare/add`, { method: 'post', data: adminWelfareAdd,  ...(requestOptions ?? {}) })
  },
  async welfareDel <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/welfare/del/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async welfarePageQuery <T = any>(pageQuery?: types.AdminWelfareQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/marketing/welfare/pageQuery`, { method: 'post', data: pageQuery,  ...(requestOptions ?? {}) })
  },
}
export const OpOrder = {
  async countInfo <T = any>(orderType?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/countInfo/${orderType}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async coursePageQuery <T = any>(query?: types.OpOrderQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/course/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async demandPageQuery <T = any>(query?: types.OpOrderQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/demand/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async resourcesPageQuery <T = any>(query?: types.OpOrderQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/resources/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async saleInfo <T = any>(orderType?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/saleInfo/${orderType}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async servicePageQuery <T = any>(query?: types.OpOrderQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/service/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async serverPageQuery <T = any>(query?: types.OpOrderQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/orderManager/system/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const Permission = {
  async permissionList <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/permission/list`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async roleAdd <T = any>(req?: types.RoleOperationDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/role/add`, { method: 'post', data: req,  ...(requestOptions ?? {}) })
  },
  async roleList <T = any>(query?: types.RoleListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/role/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async roleMod <T = any>(req?: types.RoleOperationDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/role/mod`, { method: 'post', data: req,  ...(requestOptions ?? {}) })
  },
  async rolePermissionMod <T = any>(req?: types.RolePermissionMod, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/rolePermission/mod`, { method: 'post', data: req,  ...(requestOptions ?? {}) })
  },
  async rolePermissionQuery <T = any>(roleId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/rolePermission/query/${roleId}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
}
export const OpReplyManager = {
  async evaluationCount <T = any>(type?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/evaluationCount/${type}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async evaluationListQuery <T = any>(opReplyListQuery?: types.OpEvaluationListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/evaluationList`, { method: 'post', data: opReplyListQuery,  ...(requestOptions ?? {}) })
  },
  async modEvaluation <T = any>(modReplyRequest?: types.ModReplyRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/modEvaluation`, { method: 'post', data: modReplyRequest,  ...(requestOptions ?? {}) })
  },
  async modReply <T = any>(modReplyRequest?: types.ModReplyRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/modReply`, { method: 'post', data: modReplyRequest,  ...(requestOptions ?? {}) })
  },
  async modSecReply <T = any>(modReplyRequest?: types.ModReplyRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/modSecReply`, { method: 'post', data: modReplyRequest,  ...(requestOptions ?? {}) })
  },
  async replyCount <T = any>(type?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/replyCount/${type}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async replyListQuery <T = any>(opReplyListQuery?: types.OpReplyListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/replyList`, { method: 'post', data: opReplyListQuery,  ...(requestOptions ?? {}) })
  },
  async secondReplyDetail <T = any>(secReplyListQuery?: types.OpSecReplyListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/replyManager/secondReplyDetail`, { method: 'post', data: secReplyListQuery,  ...(requestOptions ?? {}) })
  },
}
export const OpResourcesManager = {
  async pageQuery <T = any>(query?: types.ManagerResourcesPageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/pageQuery`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async resourcesAdd <T = any>(adminPptResourcesModRequest?: types.AdminPptResourcesModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesAdd`, { method: 'post', data: adminPptResourcesModRequest,  ...(requestOptions ?? {}) })
  },
  async resourcesAudit <T = any>(commonDto?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesAudit`, { method: 'post', data: commonDto,  ...(requestOptions ?? {}) })
  },
  async resourcesAuditLog <T = any>(resourcesId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesAuditLog/${resourcesId}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async resourcesCountInfo <T = any>(payType?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesCountInfo/${payType}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async resourcesDel <T = any>(resourcesId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesDel/${resourcesId}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async resourcesDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async resourcesEdit <T = any>(modRequest?: types.AdminPptResourcesModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesEdit`, { method: 'post', data: modRequest,  ...(requestOptions ?? {}) })
  },
  async resourcesOperate <T = any>(resourcesId?: number, state?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesOperate/${state}/${resourcesId}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async resourcesRecommend <T = any>(recommend?: number, resourcesId?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/resourcesManager/resourcesRecommend/${resourcesId}/${recommend}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
}
export const SaleAfterManager = {
  async approve <T = any>(auditCommonDto?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/saleAfterManager/approve`, { method: 'post', data: auditCommonDto,  ...(requestOptions ?? {}) })
  },
  async countInfo <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/saleAfterManager/countInfo`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async pageQuery <T = any>(query?: types.SaleAfterManageQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/saleAfterManager/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
}
export const OpSpecialManager = {
  async specialAdd <T = any>(modRequest?: types.ResourcesSpecialModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialAdd`, { method: 'post', data: modRequest,  ...(requestOptions ?? {}) })
  },
  async specialDel <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialDel/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async resourcesAudit <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialItemList/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async resourcesOperate <T = any>(sortRequest?: types.SortRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialItemSort`, { method: 'post', data: sortRequest,  ...(requestOptions ?? {}) })
  },
  async pageQuery <T = any>(query?: types.SpecialListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialList`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async specialManagerCount <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialManagerCount`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async resourcesEdit <T = any>(modRequest?: types.ResourcesSpecialModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialMod`, { method: 'post', data: modRequest,  ...(requestOptions ?? {}) })
  },
  async specialOperate <T = any>(id?: number, state?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialOperate/${id}/${state}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async resourcesDetail <T = any>(sortRequest?: types.SortRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/specialManager/specialSort`, { method: 'get', data: sortRequest,  ...(requestOptions ?? {}) })
  },
}
export const UserManager = {
  async allInfoList <T = any>(query?: types.UserSimpleQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/user/page`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async changeUserPwd <T = any>(id: string, password: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/user/changePassword`, { method: 'post', data: {id, password},  ...(requestOptions ?? {}) })
  },


  async userSaveOrUpdate <T = any>(query?: any, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/user/edit`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async queryQuestionList <T = any>(query?: types.UserSimpleQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/question/page`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async editQuestion <T = any>(query?: any, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/question/saveOrUpdate`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async queryTagList <T = any>(query?: types.UserSimpleQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/tag/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async queryAnswerList <T = any>(query?: types.UserSimpleQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/answer/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async editTag <T = any>(query?: any, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/tag/edit`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async addTag <T = any>(query?: any, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/tag/add`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },

  async kanbanData <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/question/kanban`, { method: 'get', data: {},  ...(requestOptions ?? {}) })
  },
  async addOperateUser <T = any>(req?: types.OperateReq, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/operate/add`, { method: 'post', data: req,  ...(requestOptions ?? {}) })
  },
  async operateList <T = any>(query?: types.OperateUserListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/operate/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async modOperateUser <T = any>(req?: types.OperateReq, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/operate/mod`, { method: 'post', data: req,  ...(requestOptions ?? {}) })
  },
  async simpleUserQuery <T = any>(query?: types.UserSimpleQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/simpleUser/list`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async simpleUserNum <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/simpleUserNum`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async userEnablingMod <T = any>(query?: types.EnablingModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/userEnablingMod`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async userDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/userInfo/detail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async vipNum <T = any>(requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/userManager/vipNum`, { method: 'get',  ...(requestOptions ?? {}) })
  },
}
export const WorksManager = {
  async articleAdd <T = any>(articleModRequest?: types.AdminArticleModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/articleAdd`, { method: 'post', data: articleModRequest,  ...(requestOptions ?? {}) })
  },
  async articleDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/articleDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async articleEdit <T = any>(articleModRequest?: types.AdminArticleModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/articleEdit`, { method: 'post', data: articleModRequest,  ...(requestOptions ?? {}) })
  },
  async articleQueryList <T = any>(query?: types.WorksArticleListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/articleQueryList`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async audit <T = any>(worksModRequest?: types.AuditCommonDto, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/audit`, { method: 'post', data: worksModRequest,  ...(requestOptions ?? {}) })
  },
  async countInfo <T = any>(worksType?: string, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/countInfo/${worksType}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async del <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/del/${id}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async recommend <T = any>(id?: number, recommend?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/recommend/${id}/${recommend}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async setHeadFixed <T = any>(headFixed?: number, id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/setHeadFixed/${id}/${headFixed}`, { method: 'post',  ...(requestOptions ?? {}) })
  },
  async workQueryList <T = any>(query?: types.WorksArticleListQuery, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/workQueryList`, { method: 'post', data: query,  ...(requestOptions ?? {}) })
  },
  async worksAdd <T = any>(worksModRequest?: types.AdminWorksModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/worksAdd`, { method: 'post', data: worksModRequest,  ...(requestOptions ?? {}) })
  },
  async worksDetail <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/worksDetail/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
  async worksEdit <T = any>(worksModRequest?: types.AdminWorksModRequest, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/worksEdit`, { method: 'post', data: worksModRequest,  ...(requestOptions ?? {}) })
  },
  async worksLog <T = any>(id?: number, requestOptions?: RequestOptionsInit): AsyncResponse<T> {
    return request(`/api/admin/worksManager/worksLog/${id}`, { method: 'get',  ...(requestOptions ?? {}) })
  },
}
